package org.example.system.model.form;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import java.io.Serial;
import java.io.Serializable;

@Schema(name = "轮播图表单对象")
@Data
public class CarouselForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(name = "轮播图ID")
    private Integer id;

    @Schema(name = "轮播图地址")
    private String imgUrl;

    @Schema(name = "轮播图跳转地址")
    // @NotNull(message = "轮播图跳转地址不能为空")
    private String linkUrl;

    @Schema(name = "上传文件对象")
    private MultipartFile file;
}
